Skip to content
This repository has been archived by the owner on Jun 28, 2018. It is now read-only.

Change GracefulStop into a RO channel #282

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Freeaqingme
Copy link

Migrate never writes to the GracefulStop channel, so why not guarantee that by turning the chan into a ReadOnly channel?

In my case I already had such a channel available which happened to be RO, so for me it wasn't just a nice to have, but sort of a necessity :)

I believe this change does not break BC.

@Freeaqingme
Copy link
Author

Freeaqingme commented Sep 22, 2017

Apparently the CLI tooling does write directly to the chan. Coming to think of it, other people may do that as well, since it's an exported property. It may be a nice change for the next major version then (given that I also fix the test)?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant